package com.inkFlow.book.domain.bo;

import com.inkFlow.book.domain.InkBookToc;
import com.inkFlow.common.core.validate.AddGroup;
import com.inkFlow.common.core.validate.EditGroup;
import com.inkFlow.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 小说目录业务对象 ink_book_toc
 *
 * @author inkFlow
 * @date 2025-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InkBookToc.class, reverseConvertGenerate = false)
public class InkBookTocBo extends BaseEntity {

    /**
     * 小说目录id
     */
    private Integer tocId;

    /**
     * 小说id
     */
    @NotNull(message = "小说id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer bookId;

    /**
     * 章节id
     */
    @NotNull(message = "章节id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer chaptherId;

    /**
     * 小说名称
     */
    @NotBlank(message = "小说名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bookName;

    /**
     * 章节名称
     */
    @NotBlank(message = "章节名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String chaptherName;


}
